//////////////////////////////////////////////////////////////////////////
// FileName:
// CreateBy:
// CreateDate:2010/5/25
// Description:
//		SecruityAnalysisMeeting class
//
// Modify Log:
//
// Copyright:
/////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using Auto.Components;

namespace Auto.Data.BusMan.Model
{
    [Serializable]
    public class SecruityAnalysisMeeting
    {
        #region --Field--
        ///<summary>
        ///Data Table Bus_SecruityAnalysisMeeting
        ///</summary>
        public const string TABLENAME_Bus_SecruityAnalysisMeeting="Bus_SecruityAnalysisMeeting";
        /// <sumary> 
        /// (RecID Type:Int Len:0) 
        /// </sumary> 
        public const string FIELD_RecID="RecID";
        /// <sumary> 
        /// (DocID Type:VarChar Len:20) 
        /// </sumary> 
        public const string FIELD_DocID="DocID";
        /// <sumary> 
        /// (MeetingTime Type:SmallDateTime Len:0) 
        /// </sumary> 
        public const string FIELD_MeetingTime="MeetingTime";
        /// <sumary> 
        /// (MeetingAddress Type:NVarChar Len:50) 
        /// </sumary> 
        public const string FIELD_MeetingAddress="MeetingAddress";
        /// <sumary> 
        /// (Moderator Type:NVarChar Len:20) 
        /// </sumary> 
        public const string FIELD_Moderator="Moderator";
        /// <sumary> 
        /// (Attendees Type:NVarChar Len:200) 
        /// </sumary> 
        public const string FIELD_Attendees="Attendees";
        /// <sumary> 
        /// (MeetingAgenda Type:NVarChar Len:100) 
        /// </sumary> 
        public const string FIELD_MeetingAgenda="MeetingAgenda";
        /// <sumary> 
        /// (MeetingMinutes Type:NVarChar Len:2000) 
        /// </sumary> 
        public const string FIELD_MeetingMinutes="MeetingMinutes";
        /// <sumary> 
        /// (RecDivID Type:VarChar Len:20) 
        /// </sumary> 
        public const string FIELD_RecDivID="RecDivID";
        /// <sumary> 
        /// (RecAcct Type:VarChar Len:20) 
        /// </sumary> 
        public const string FIELD_RecAcct="RecAcct";
        /// <sumary> 
        /// (RecDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public const string FIELD_RecDate="RecDate";
        /// <sumary> 
        /// (Note Type:NVarChar Len:200) 
        /// </sumary> 
        public const string FIELD_Note="Note";
        /// <sumary> 
        /// (UserAcct Type:VarChar Len:20) 
        /// </sumary> 
        public const string FIELD_UserAcct="UserAcct";
        /// <sumary> 
        /// (LastUpdateDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public const string FIELD_LastUpdateDate="LastUpdateDate";
        #endregion --Field--

        #region --Property--
        private int _recid;
        private string _docid;
        private DateTime _meetingtime;
        private string _meetingaddress;
        private string _moderator;
        private string _attendees;
        private string _meetingagenda;
        private string _meetingminutes;
        private string _recdivid;
        private string _recacct;
        private DateTime _recdate;
        private string _note;
        private string _useracct;
        private DateTime _lastupdatedate;

        /// <sumary> 
        /// (RecID Type:Int Len:0) 
        /// </sumary> 
        public int RecID
        {
            set { _recid = value; }
            get { return _recid; }
        }

        /// <sumary> 
        /// (DocID Type:VarChar Len:20) 
        /// </sumary> 
        public string DocID
        {
            set { _docid = value; }
            get { return _docid; }
        }

        /// <sumary> 
        /// (MeetingTime Type:SmallDateTime Len:0) 
        /// </sumary> 
        public DateTime MeetingTime
        {
            set { _meetingtime = value; }
            get { return _meetingtime; }
        }

        /// <sumary> 
        /// (MeetingAddress Type:NVarChar Len:50) 
        /// </sumary> 
        public string MeetingAddress
        {
            set { _meetingaddress = value; }
            get { return _meetingaddress; }
        }

        /// <sumary> 
        /// (Moderator Type:NVarChar Len:20) 
        /// </sumary> 
        public string Moderator
        {
            set { _moderator = value; }
            get { return _moderator; }
        }

        /// <sumary> 
        /// (Attendees Type:NVarChar Len:200) 
        /// </sumary> 
        public string Attendees
        {
            set { _attendees = value; }
            get { return _attendees; }
        }

        /// <sumary> 
        /// (MeetingAgenda Type:NVarChar Len:100) 
        /// </sumary> 
        public string MeetingAgenda
        {
            set { _meetingagenda = value; }
            get { return _meetingagenda; }
        }

        /// <sumary> 
        /// (MeetingMinutes Type:NVarChar Len:2000) 
        /// </sumary> 
        public string MeetingMinutes
        {
            set { _meetingminutes = value; }
            get { return _meetingminutes; }
        }

        /// <sumary> 
        /// (RecDivID Type:VarChar Len:20) 
        /// </sumary> 
        public string RecDivID
        {
            set { _recdivid = value; }
            get { return _recdivid; }
        }

        /// <sumary> 
        /// (RecAcct Type:VarChar Len:20) 
        /// </sumary> 
        public string RecAcct
        {
            set { _recacct = value; }
            get { return _recacct; }
        }

        /// <sumary> 
        /// (RecDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public DateTime RecDate
        {
            set { _recdate = value; }
            get { return _recdate; }
        }

        /// <sumary> 
        /// (Note Type:NVarChar Len:200) 
        /// </sumary> 
        public string Note
        {
            set { _note = value; }
            get { return _note; }
        }

        /// <sumary> 
        /// (UserAcct Type:VarChar Len:20) 
        /// </sumary> 
        public string UserAcct
        {
            set { _useracct = value; }
            get { return _useracct; }
        }

        /// <sumary> 
        /// (LastUpdateDate Type:SmallDateTime Len:0) 
        /// </sumary> 
        public DateTime LastUpdateDate
        {
            set { _lastupdatedate = value; }
            get { return _lastupdatedate; }
        }

        #endregion --Property--

        #region --New--
        /// <summary>
        /// Constructed Function
        /// </summary>
        public SecruityAnalysisMeeting()
        {
         Init();
        }
        /// <summary>
        /// Constructed Function
        /// </summary>
        /// <param name="dr">DataRow</param>
        public SecruityAnalysisMeeting(DataRow dr)
        {
        Init();
        SetModel(dr);
        }
        /// <summary>
        /// Constructed Function
        /// </summary>
        /// <param name="dt">DataTable</param>
        public SecruityAnalysisMeeting(DataTable dt)
        {
        Init();
        SetModel(dt);
        }
        #endregion --New--

        #region --Private--
        /// <summary>
        /// Init The Private variable
        /// </summary>
        private void Init()
         {
                 _recid=0;
                 _docid=string.Empty;
                 _meetingtime=DateTime.MinValue;
                 _meetingaddress=string.Empty;
                 _moderator=string.Empty;
                 _attendees=string.Empty;
                 _meetingagenda=string.Empty;
                 _meetingminutes=string.Empty;
                 _recdivid=string.Empty;
                 _recacct=string.Empty;
                 _recdate=DateTime.MinValue;
                 _note=string.Empty;
                 _useracct=string.Empty;
                 _lastupdatedate=DateTime.MinValue;
        }
        /// <summary>
        /// SetModel By DataRow
        /// </summary>
        /// <param name="dr">DataRow</param>
        /// <returns>SecruityAnalysisMeeting</returns>
        private SecruityAnalysisMeeting SetModel(DataRow dr)
        {
                 _recid=StrHelper.GetIntValue(dr[FIELD_RecID]);
                 _docid=StrHelper.GetStringValue(dr[FIELD_DocID]);
                 _meetingtime=StrHelper.GetDateTimeValue(dr[FIELD_MeetingTime]);
                 _meetingaddress=StrHelper.GetStringValue(dr[FIELD_MeetingAddress]);
                 _moderator=StrHelper.GetStringValue(dr[FIELD_Moderator]);
                 _attendees=StrHelper.GetStringValue(dr[FIELD_Attendees]);
                 _meetingagenda=StrHelper.GetStringValue(dr[FIELD_MeetingAgenda]);
                 _meetingminutes=StrHelper.GetStringValue(dr[FIELD_MeetingMinutes]);
                 _recdivid=StrHelper.GetStringValue(dr[FIELD_RecDivID]);
                 _recacct=StrHelper.GetStringValue(dr[FIELD_RecAcct]);
                 _recdate=StrHelper.GetDateTimeValue(dr[FIELD_RecDate]);
                 _note=StrHelper.GetStringValue(dr[FIELD_Note]);
                 _useracct=StrHelper.GetStringValue(dr[FIELD_UserAcct]);
                 _lastupdatedate=StrHelper.GetDateTimeValue(dr[FIELD_LastUpdateDate]);
                return this;
        }
        /// <summary>
        /// SetModel By DataTable
        /// </summary>
        /// <param name="dt">DataTable</param>
        /// <returns>SecruityAnalysisMeeting</returns>
        private SecruityAnalysisMeeting SetModel(DataTable dt)
        {
                foreach (DataRow dr in dt.Rows)
                {
                 SetModel(dr);
                break;
                }
                return this;
        }
        #endregion --Private--

    }
}

